import { request } from "../utils/service";

// 登录
export function login(data: { username: string; password: string }) {
  return request.post("/api/login", data);
}

// 列表删除
export function deleteList(data: { id: string }) {
  return request.post("/api/list/delete", data);
}

// 列表添加
export function addList(data: {
  title: string;
  id?: string;
  desc: string;
  time: string;
  image: string;
}) {
  return request.post("/api/list/add", data);
}
